package com.roncoo.education.course.common.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel("视频播放进度实时更新对象")
public class CourseVideoMemoryREQ {

    @ApiModelProperty("课程id")
    private Long courseId;

    @ApiModelProperty("章节id")
    private Long chapterId;

    @NotNull(message = "课时id不能为空")
    @ApiModelProperty("课时id")
    private Long periodId;

    @NotNull(message = "视频编号不能为空")
    @ApiModelProperty("视频编号")
    private Long videoNo;

    @NotNull(message = "最后一次播放进度不能为空")
    @ApiModelProperty("最后一次播放进度")
    private String lastMemory;

    @ApiModelProperty(value = "是否完成播放",notes = "1完成；0未完成")
    private Integer isFinish;
}
